package website.digitalocean.chapter12;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/13 17:31
 * @version: 1.0
 */
@Slf4j
public abstract class HouseTemplate {
    public final void buildHouse() {
        buildFoundation();
        buildPillars();
        buildWalls();
        log.info("finish");
    }

    private void buildWindows() {
        log.info("build windows");
    }

    public abstract void buildWalls();

    public abstract void buildPillars();


    private void buildFoundation() {
        log.info("build foundation");
    }
}
